<!DOCTYPE html>
<!-- saved from url=(0048)http://www.jinwanrc.com/zhjwrc/weixin/login.html -->
<html style="font-size: 101.493px;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title></title>
	<meta id="mobileMeta" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

	<meta http-equiv="X-UA-Compatible" content="chrome=1">
	<link rel="stylesheet" href="${ctxPath}/js/app/wechatApp/login_files/style.css">
	<link rel="stylesheet" href="${ctxPath}/js/app/wechatApp/login_files/flickity-docs.css" media="screen">
  	<link rel="stylesheet" href="${ctxPath}/js/app/wechatApp/login_files/theme/default/layer.css" media="all">

  	<script src="${ctxPath}/js/app/wechatApp/login_files/jquery.min.js"></script>
	<script src="${ctxPath}/js/app/wechatApp/login_files/vue.min.js"></script>
	<script src="${ctxPath}/js/app/wechatApp/login_files/util.js"></script>
	<script src="${ctxPath}/js/app/wechatApp/login_files/layer.js"></script><link rel="stylesheet" href="${ctxPath}/js/app/wechatApp/login_files/layer(1).css" id="layuicss-layer">
	<script src="${ctxPath}/js/app/wechatApp/login_files/tap.js" type="text/javascript"></script>
  	<script src="${ctxPath}/js/app/wechatApp/login_files/flickity-docs.min.js"></script>
	<script src="${ctxPath}/js/app/wechatApp/login_files/rem.js"></script>

</head>
<body class="bg">
<header>
  <div class="pre" ></div>
  <h1 class="tittle">金湾人才服务管理系统审核进度查询</h1>
  <div class="rt" ></div>
</header>
<main>
  <div class="login-content">
    <div class="input-k">
      <div class="inp-lt"> <img src="${ctxPath}/js/app/wechatApp/login_files/login-call.png">
        <input type="text" placeholder="请输入身份证号" id="identity" name="identity" title=" ">
      </div>
      <div class="inp-rt"><img onclick="cleanInput('identity')" src="${ctxPath}/js/app/wechatApp/login_files/delete.png" class="delete"></a> </div>
    </div>
      <div class="input-k">
      <div class="inp-lt"> <img src="${ctxPath}/js/app/wechatApp/login_files/login-password.png">
          <input type="password" placeholder="请输入密码" id="password" name="password" title=" ">
      </div>
      <div class="inp-rt"><img onclick="cleanInput('password')" src="${ctxPath}/js/app/wechatApp/login_files/delete.png" class="delete"></a> </div>
      </div>
      <select id="year" style="margin-left: 30%;width: auto;padding: 0px 10%;height: 24px;font-size: 20px; margin-top: 1rem;">
      </select>
    <button type="button" class="sumbmit" onclick="doajax()">查询</button>
    <p class="prompt">提示：请输入正确有效的身份证信息。</p>
      <div id="result">
      </div>
  </div>
</main>

<script>
    $(function () {
        var html = "";
        var date=new Date;
        var year= date.getFullYear();
        for(;year>2015;year--){
            html += "<option value='"+year+"' style='text-align: center;'>"+year+"</option>"
        }
        $("#year").html(html);
    });
    function cleanInput(id) {
        id = "#"+ id
        $(id).val("");
    }
	function doajax() {
        var identity = $("#identity").val();
        if (identity == "") {
            jwAlert("请输入身份证号");
            return;
        }
        var password = $("#password").val();
        if (password == "") {
            jwAlert("请输入密码");
            return;
        }
        var year = $("#year").val();
        if (year == "") {
            jwAlert("请选择年份");
            return;
        }
        $.ajax({
            url:"/wechatApp/getInfo.json",
            data:{identity:identity,password:password,year:year},
            success:function (data) {
                console.log(data);
                if(data.data&&data.code == '0'){
                    var list = data.data;
                    var html = "";
                    for(var l in list){
                        var obj = list[l];
                        html += " <div class=\"input-k\">\n" +
                            "          <span style=\"float: left;margin-left: 3px\">"+l+"</span> <span style=\"float: right;color: #00B83F;margin-right: 3px\">"+obj+"</span>\n" +
                            "      </div>"
                    }
                    $("#result").html(html);
                }else if(data.code != '0'){
                    jwAlert(data.data);
                } else {
                    $("#result").html("<span>查无结果!</span>")
                }
            }
        })

    }

</script>

</body></html>